#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	printf("Input m,n:");
	int i, j;
	int row = 0;
	int col = 0;
	int m = 0;
	int n = 0;
	scanf("%d%d", &m, &n);
	printf("Input %d*%d array:", m, n);

	int a[100][100];
	for ( i = 0; i < m; i++) {
		for ( j = 0; j < n; j++) {
			scanf("%d", &a[i][j]);
		}
	}
	int t = a[0][0];
	for (i = 0; i < m; i++) {
		for (j = 0; j < n; j++) {

			if (a[i][j] > t) {
				t = a[i][j];
				row = i;
				col = j;

			}
		}
	}
	printf("max=%d  row=%d  col=%d", t, row + 1, col +1);
	return 0;
}